* {
  font-family: "sans-serif";
  margin: 0;
  padding: 0;
}
body,
.container {
  width: 100vw;
  height: 100vh;
}
/* main */
.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #042104;
  filter: hue-rotate(70deg);
}
.loader {
  position: relative;
  transform: rotate(calc(45deg * var(--r)));
}
.loader span {
  position: absolute;
  top: 0;
  left: -200px;
  width: 200px;
  height: 2px;
  /* background: #f00; */
  transform-origin: right;
  transform: rotate(calc(18deg * var(--i)));
}
.loader span::before {
  content: "";
  position: absolute;
  top: calc(-15px / 2);
  width: 15px;
  height: 15px;
  background: #00ff0a;
  border-radius: 50%;
  box-shadow: 0 0 20px #00ff0a, 0 0 40px #00ff0a, 0 0 60px #00ff0a,
    0 0 80px #00ff0a, 0 0 100px #00ff0a;
  animation: animate 5s linear infinite;
  animation-delay: calc(-0.5s * var(--i));
}

@keyframes animate {
  0% {
    transform: translateX(200px) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: translateX(0) scale(0);
    opacity: 0;
  }
}
